home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000241_sonicechoesWit…pam@hotmail.com_Wed Aug 27 17:50:45 EDT 2003.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  88 lines

  1. Article: 14481 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!not-for-mail
  3. From: dgk <sonicechoes@hot-nospamp-mail.com>
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: How to recover from a hangup?
  6. Date: Wed, 27 Aug 2003 16:08:05 -0400
  7. Organization: PANIX Public Access Internet and UNIX, NYC
  8. Lines: 66
  9. Message-ID: <fr3qkvk2abb3h4r77eij0nresfrk94jnjq@4ax.com>
  10. References: <uoppkvgocr6vgbptg62fm7osanrjhontk3@4ax.com> <biivdc$t5d$1@sesame.cc.columbia.edu>
  11. Reply-To: sonicechoesWithNoSpam@hotmail.com
  12. NNTP-Posting-Host: dsl027-158-082.nyc1.dsl.speakeasy.net
  13. Mime-Version: 1.0
  14. Content-Type: text/plain; charset=us-ascii
  15. Content-Transfer-Encoding: 7bit
  16. X-Trace: reader2.panix.com 1062014895 19843 216.27.158.82 (27 Aug 2003 20:08:15 GMT)
  17. X-Complaints-To: abuse@panix.com
  18. NNTP-Posting-Date: Wed, 27 Aug 2003 20:08:15 +0000 (UTC)
  19. X-Newsreader: Forte Agent 1.92/32.572
  20. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14481
  21.  
  22. On 27 Aug 2003 15:05:16 -0400, fdc@sesame.cc.columbia.edu (Frank da
  23. Cruz) wrote:
  24.  
  25. >In article <uoppkvgocr6vgbptg62fm7osanrjhontk3@4ax.com>,
  26. >dgk  <sonicechoesWithNoSpam@hotmail.com> wrote:
  27. >: I have an app that uses some of the K95 provided scripts and answers
  28. >: calls and has a simple dialog. I have a problem that results in the
  29. >: Kermit dos box printing this line over and over:
  30. >: 
  31. >: ?Connection on Conexant HCF V90 56K Data Fax PCI Modem is not open.
  32. >: 
  33. >: The script is kicked off by this section of code from Dhostmdm.KSC
  34. >: 
  35. >: ; Break out of loop if there is a nonrecoverable error, otherwise
  36. >: ; continue.
  37. >: 
  38. >: while 1 {
  39. >:     answer
  40. >:     if > \v(dialstatus) 0 if < \v(dialstatus) 22 stop 1 Fatal modem error
  41. >:     if = \v(dialstatus) 0 take MM3.ksc
  42. >:     echo Type Ctrl-C to exit...          ; Give user a chance to cancel
  43. >:     sleep 2
  44. >: }
  45. >: 
  46. >: MM3.KSC just asks for a username and password, and then a menu option
  47. >: here:
  48. >: 
  49. >: ASG \%T 0
  50. >: :GETCMD    ; What does the user want to do anyway?
  51. >: OUTPUT \13\10Command:
  52. >: CLEAR INPUT
  53. >: INPUT 10 \13
  54. >: DEF \%C
  55. >: DEF \%Z \V(INPUT)
  56. >: DO STRIP {\%Z}
  57. >: IF = \FLENGTH(\%Z) 0 GOTO GETCMD
  58. >: ASG \%C \%N
  59. >: IF EQUAL {\%C} SND GOTO RECEIVE
  60. >: IF EQUAL {\%C} {RCV R} GOTO SEND
  61. >: IF EQUAL {\%C} BYE GOTO IFAIL
  62. >: IF EQUAL {\%C} {RCV M} GOTO SENDM
  63. >: OUTPUT \13\10REQUEST ERROR|\%C|
  64. >: INC \%T 1
  65. >: IF = \%T 4 GOTO IFAIL
  66. >: GOTO GETCMD
  67. >: 
  68. >: 
  69. >: I'll be the first person to admit that I don't know much of the Kermit
  70. >: language but the code works some of the time that a user hangs up.
  71. >: Othertimes I get that line repeating and have to restart Kermit.
  72. >: 
  73. >: Is there some error checking I should be doing here to prevent the
  74. >: hangup from messing the modem up?
  75. >:
  76. >That's what it sounds like.  Every command that could fail should be
  77. >checked.  Your MM3.KSC file is a GOTO loop containing INPUTs and OUTPUTs.
  78. >These commands fail if the connection is lost, but your script doesn't
  79. >check for it, so loops forever, printing error messages.  See the
  80. >tutorial:
  81. >
  82. >  http://www.columbia.edu/kermit/ckscripts.html#tut
  83. >
  84. >- Frank
  85.  
  86. Thanks. I've been putting IF FAIL END after each INPUT, SEND, and
  87. RECEIVE commands. It seems to be working ok.
  88.